#ifndef _IMYSQL_FRONTAPP_H_
#define _IMYSQL_FRONTAPP_H_

#include "imysql_front.h"
wxString *g_appname = NULL;

#if wxUSE_PRINTING_ARCHITECTURE

//! global print data, to remember settings during the session
wxPrintData *g_printData = (wxPrintData*) NULL;
wxPageSetupData *g_pageSetupData = (wxPageSetupData*) NULL;

#endif

class IMySQL_FrontApp: public wxApp
{    
    DECLARE_CLASS( IMySQL_FrontApp )
    DECLARE_EVENT_TABLE()

private:
    //wxMutex mutex;
public:

    /// Constructor
    IMySQL_FrontApp();

    void Init();

    /// Initialises the application
    virtual bool OnInit();

    /// Called on exit
    virtual int OnExit();

    virtual bool OnExceptionInMainLoop();

    virtual void OnUnhandledException();

    virtual void OnFatalException();
};

DECLARE_APP(IMySQL_FrontApp)

#endif
